package com.qianfeng.entity;

import java.io.Serializable;
import java.util.List;

/**
 * author: 田晋宇
 * datetime:2021/11/2 14:45
 * email:853796359@qq.com
 */
public class Type implements Serializable {
    private Integer id;
    private String name;
    private Integer pid;
    private List<Type> children;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public List<Type> getChildren() {
        return children;
    }

    public void setChildren(List<Type> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Type{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pid=" + pid +
                ", children=" + children +
                '}';
    }
}
